package web.interceptors;

import javax.servlet.*;
import java.io.IOException;

public class FilterDemo1 implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {

        //前置拦截


        //放行
        chain.doFilter(request,response);

        //后置拦截
    }

    @Override
    public void destroy() {

    }
}
